
<!DOCTYPE html>
<html>
<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="Keywords" content="微盟商户管理后台 - 国内最大的微信营销管理平台" />
    <meta name="Description" content="微盟商户管理后台 - 国内最大的微信营销管理平台" />

    <link rel="stylesheet" type="text/css" href="https://www.weimob.com/templates/kindeditor/themes/default/default.css?v=2014-05-21" />
    <script type="text/javascript" src="https://stc.weimob.com/src/jQuery.js?v=2014-05-21"></script>

    <script type="text/javascript" src="https://www.weimob.com/templates/kindeditor/kindeditor-min.js?v=2014-05-21"></script>
    <script type="text/javascript" src="https://www.weimob.com/templates/kindeditor/lang/zh_CN.js?v=2014-05-21"></script>
    <title>微盟商户管理后台</title>
</head>
<body>
<div id="main">
    <div class="container-fluid">

        <div class="row-fluid">
            <div class="span12">
                <div class="box">

                    <div class="box-content">

                                    <div id="image_upload" class=""><img upload="image-single" style="max-height:50px;" src="https://www.weimob.com/templates/kindeditor/attached/66/9d/e6/image/20131003/20131003122526_49597.jpg" alt="https://www.weimob.com/templates/kindeditor/attached/66/9d/e6/image/20131003/20131003122526_49597.jpg" /><input type="hidden" value="https://www.weimob.com/templates/kindeditor/attached/66/9d/e6/image/20131003/20131003122526_49597.jpg" name="avatar_url" id="avatar_url" /><span class="help-inline"><button name="button" class="btn select_img" type="button">选择图⽚</button><span class="help-inline">选择上传头像图片</span></span></div>
                                    <script>
                                        KindEditor.ready(function(K){
                                            var editor = KindEditor.editorObj || K.editor({
                                                        themeType: 'simple',
                                                        allowFileManager: true,
                                                        uploadJson: 'https://www.weimob.com/resource/imageSingleUpload?bid=11933&pid=5883',
                                                        fileManagerJson: 'https://www.weimob.com/resource/imageSingleManage?bid=11933&pid=5883'
                                                    });

                                            $('#image_upload button.select_img').click(function(e){
                                                editor.loadPlugin('smimage', function(){
                                                    editor.plugin.imageDialog({
                                                        imageUrl: $(e.target).parent().prev().val(),
                                                        showRemote: 1,//体验版 试用版 禁止上传网络图片 weijing.zhou
                                                        clickFn: function(url, title, width, height, border, align){
                                                            $(e.target).parent().prev().val(url);

                                                            if('image-single' == $(e.target).parent().prev().prev().attr('upload')){
                                                                $(e.target).parent().prev().prev().attr('src', url);
                                                                $(e.target).parent().prev().prev().attr('alt', url)
                                                            }

                                                            editor.hideDialog();
                                                        }
                                                    });
                                                });
                                            });
                                        });
                                    </script>

                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
</html>
